import Vue from 'vue'
import VueRouter from 'vue-router'
import Cart from '@/views/Cart'
import TodoList from "@/views/TodoList";
import Userlist from "../views/Userlist";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Cart
  },
  {
    path: '/todolist',
    component: TodoList
  },
  {
    path: '/list',
    component: Userlist
  }
]

const router = new VueRouter({
  routes
})

export default router
